package com.lyl.serviceedu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableDiscoveryClient // 服务发现
@EnableFeignClients // 服务调用
@SpringBootApplication
@EnableSwagger2 //swagger注解
@ComponentScan(basePackages = "com.lyl")// 放大组件扫描包
@EnableTransactionManagement
public class EduServiceApplicaiton {
    public static void main(String[] args) {
        SpringApplication.run(EduServiceApplicaiton.class,args);
    }
}
